import { _decorator, Component, log, Node, view, screen } from 'cc';
import { Direction, MoveBaseEntity, Role } from './MoveBaseEntity';
const { ccclass, property } = _decorator;

@ccclass('Bullet')
export class Bullet extends MoveBaseEntity {
    update(dt: number) {
        let p = this.node.position.clone();
        p.y += dt * this.speed;
        this.node.setPosition(p);
        super.update(dt);
    }
}

